import { defineConfig } from 'vite'
import { resolve } from 'path'

export default defineConfig({
  root: process.cwd(),
  publicDir: 'public',
  build: {
    outDir: 'dist',
    assetsDir: 'assets',
    minify: 'terser',
    sourcemap: true
  },
  server: {
    port: 3000,
    open: true,
    cors: true
  },
  resolve: {
    alias: {
      '@': resolve(__dirname, '.')
    }
  }
})